package com.campus.academic.job.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学习资源表
 * </p>
 *
 * @author author
 * @since 2024-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("learning_resources")
@ApiModel(value="LearningResources对象", description="学习资源表")
public class LearningResources implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上传的教师主键id")
    @TableField("teacher_id")
    private Integer teacherId;

    @ApiModelProperty(value = "资源分类(1案例，2文献资料，3课件，4作业)")
    @TableField("category")
    private Integer category;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "资源描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "文件路径")
    @TableField("file_path")
    private String filePath;

    @ApiModelProperty(value = "审核状态")
    @TableField("audit_status")
    private Integer auditStatus;

    @ApiModelProperty(value = "上传日期")
    @TableField("upload_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime uploadDate;

    @ApiModelProperty(value = "修改日期")
    @TableField("change_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime changeDate;

    @ApiModelProperty(value = "是否删除（0否，1是）")
    @TableField("is_deleted")
    private Boolean isDeleted;
}
